/*
 * @Descripttion: .
 * @Version: .
 * @Author: JM
 * @Date: 2023-02-27 17:25:28
 * @LastEditors: .
 * @LastEditTime: 2023-03-02 16:49:30
 */
/*
 * @Descripttion: .
 * @Version: .
 * @Author: JM
 * @Date: 2023-02-27 17:25:28
 * @LastEditors: .
 * @LastEditTime: 2023-03-02 11:54:37
 */
import axios from "@/http";

// 获取数据
export function getCategory(newid: number) {
  return axios({
    url: "/item/cateList.json?categoryId=" + newid,
    method: "get",
  });
}

// 获取数据
export function getCategoryList(categoryId: number, subCategoryId: number) {
  return axios({
    url: "/item/list.json?categoryType=0",
    method: "get",
    params: {
      __timestamp:"autoComplete",
      categoryId,
      subCategoryId,
    },
  });
}


